package com.molyfun.parents.rest.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.molyfun.parents.rest.BaseResponse;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:10/31/16.
 */
public class NewTeamEvaluateTrainingListResponse extends BaseResponse {

    private ArrayList<NewTeamEvaluateBean> data;

    public ArrayList<NewTeamEvaluateBean> getData(){
        return data;
    }

    public static class NewTeamEvaluateBean implements Parcelable {

        /**
         * id : 8a2d926356d605f70156d62b7b4c36f8
         * name : pep-3
         * begintime : null
         * endtime : null
         * traininglist : [{"id":null,"name":null,"begintime":null,"endtime":null,"traininglist":null},{"id":null,"name":null,"begintime":null,"endtime":null,"traininglist":null},{"id":null,"name":null,"begintime":null,"endtime":null,"traininglist":null},{"id":null,"name":null,"begintime":null,"endtime":null,"traininglist":null},{"id":null,"name":null,"begintime":null,"endtime":null,"traininglist":null},{"id":null,"name":null,"begintime":null,"endtime":null,"traininglist":null}]
         */

        private String id;
        private String name;
        private String begintime;
        private String endtime;
        private List<TraininglistBean> traininglist;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getBegintime() {
            return begintime;
        }

        public void setBegintime(String begintime) {
            this.begintime = begintime;
        }

        public String getEndtime() {
            return endtime;
        }

        public void setEndtime(String endtime) {
            this.endtime = endtime;
        }

        public List<TraininglistBean> getTraininglist() {
            return traininglist;
        }

        public void setTraininglist(List<TraininglistBean> traininglist) {
            this.traininglist = traininglist;
        }

        public static class TraininglistBean implements Parcelable {
            /**
             * id : null
             * name : null
             * begintime : null
             * endtime : null 月份
             * traininglist : null 月份
             */

            private String id;
            private String name;
            private String begintime;
            private String endtime;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getBegintime() {
                return begintime;
            }

            public void setBegintime(String begintime) {
                this.begintime = begintime;
            }

            public String getEndtime() {
                return endtime;
            }

            public void setEndtime(String endtime) {
                this.endtime = endtime;
            }


            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.id);
                dest.writeString(this.name);
                dest.writeString(this.begintime);
                dest.writeString(this.endtime);
            }

            public TraininglistBean() {
            }

            protected TraininglistBean(Parcel in) {
                this.id = in.readString();
                this.name = in.readString();
                this.begintime = in.readString();
                this.endtime = in.readString();
            }

            public static final Creator<TraininglistBean> CREATOR = new Creator<TraininglistBean>() {
                @Override
                public TraininglistBean createFromParcel(Parcel source) {
                    return new TraininglistBean(source);
                }

                @Override
                public TraininglistBean[] newArray(int size) {
                    return new TraininglistBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.name);
            dest.writeString(this.begintime);
            dest.writeString(this.endtime);
            dest.writeTypedList(this.traininglist);
        }

        public NewTeamEvaluateBean() {
        }

        protected NewTeamEvaluateBean(Parcel in) {
            this.id = in.readString();
            this.name = in.readString();
            this.begintime = in.readString();
            this.endtime = in.readString();
            this.traininglist = in.createTypedArrayList(TraininglistBean.CREATOR);
        }

        public static final Creator<NewTeamEvaluateBean> CREATOR = new Creator<NewTeamEvaluateBean>() {
            @Override
            public NewTeamEvaluateBean createFromParcel(Parcel source) {
                return new NewTeamEvaluateBean(source);
            }

            @Override
            public NewTeamEvaluateBean[] newArray(int size) {
                return new NewTeamEvaluateBean[size];
            }
        };
    }

}
